<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ckeditor</title>
</head>
<body>
<div id="editor">
    <p>This is the editor content.</p>
</div>
</body>
<script src="/HTML/文本编辑插件/ckeditor.js"></script>
<script>
    ClassicEditor
        .create( document.querySelector( '#editor' ), {
            alignment: {
                options: ['left', 'right']
            },
        })
        .then( editor => {
            window.editor = editor;
        } )
        .catch( err => {
            console.error( err.stack );
        } );
</script>
</html>
